package ar.com.personalTravellers.generators.runner;

import ar.com.personalTravellers.executables.DataGeneratorExecutable;

import com.angel.architecture.runner.ApplicationProcessRunner;
import com.angel.architecture.spring.ApplicationContextSpring;

/**
 * @author William
 */
public class PTDataGeneratorRunner {

	public static String[] SG_SPRING_APPLICATION_CONTEXTS = new String[]{
		"classpath:applicationContext-sgflex.xml",
		"classpath:applicationContext-sgdaos.xml",
		"classpath:applicationContext-sgservices.xml",
		"classpath:applicationContext-sgmodel.xml"
	};
	                                                                   
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		ApplicationContextSpring applicationContextSpring = (ApplicationContextSpring) ApplicationContextSpring.createInstance(SG_SPRING_APPLICATION_CONTEXTS).prepareApplicationContext();
		ApplicationProcessRunner applicationProcessRunner = applicationContextSpring.getApplicationProcessRunner();
		applicationProcessRunner.addExecutable(new DataGeneratorExecutable());
		applicationProcessRunner.run();
	}
}